package com.baoyouqun.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;


@Data
@TableName("permission")
public class Permission implements Serializable {


    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "权限类型")
    @TableField("type")
    private String type;

    @ApiModelProperty(value = "菜单跳转地址")
    @TableField("path")
    private String path;

    @ApiModelProperty(value = "父id")
    @TableField("pid")
    private String pid;

    @ApiModelProperty(value = "权限名称")
    @TableField("perm_name")
    private String permName;

    @ApiModelProperty(value = "权限编码")
    @TableField("perm_code")
    private String permCode;

    @ApiModelProperty(value = "权限描述")
    @TableField("description")
    private String description;

    @ApiModelProperty(value = "排序")
    @TableField("sort")
    private Integer sort;

    @ApiModelProperty(value = "icon")
    @TableField("icon")
    private String icon;


}